package com.mentaleye.biz.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mentaleye.bean.LoanTypeBean;
import com.mentaleye.biz.LoanTypeBiz;
import com.mentaleye.service.LoanTypeService;
import com.mentaleye.util.ObjectUtil;

@Service
public class LoanTypeBizImpl implements LoanTypeBiz {

	private Logger logger=Logger.getLogger(LoanTypeBiz.class);
	
	@Autowired private LoanTypeService dataService;
	
	@SuppressWarnings("unchecked")
	@Override
	public List<LoanTypeBean> getBeanList() {
		List<LoanTypeBean> beanList=null;
		try {
			beanList=ObjectUtil.transferList(this.dataService.getList(), LoanTypeBean.class);
		} catch (Exception e) {
			logger.error("贷款类型查询异常！", e);
		}
		return beanList;
	}

}
